import { router, location } from 'ray';
import React, { FC } from 'react';
import { Button, Text, View } from '@ray-js/ray';
import { home,getSceneList } from '@ray-js/ray';
const { getCurrentHomeInfo,getDeviceIdList  } = home;


const Page4: FC = () => {
  console.log(location);
  getCurrentHomeInfo().then((data:any)=>{
    console.log(data)
    getDeviceIdList({
      ownerId:data.homeId,
      success:(data)=>{
        console.log(data);
      }
    });
  });
  // console.log(homeInfo)
  getSceneList({
    devId:"vdevo170074595901169"
  }).then((res)=>{
    console.log("aaaaaaa")
    console.log(res)
  })
  return (
    <View>
      Hello
    </View>
  );
};

export default Page4;
